package com.code.user.model.po;

import com.code.commons.model.po.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;

/**
 * AZ计划入金通道PO及持久层对象
 *
 * @author tangyifei
 * @since 2019年12月30日16:22:00
 */
@ApiModel("AZ计划入金通道PO及持久层对象")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserAZPlanChannel extends BasePO<Long> {

    private static final long serialVersionUID = 1642360429347075283L;

    @ApiModelProperty(value = "主键", example = "1")
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;

    @ApiModelProperty(value = "用户主键", example = "1")
    @NotBlank
    @Length(min = 1, max = 64)
    private String userId;

    @ApiModelProperty(value = "入金通道（1000 3000 5000）", example = "1000 3000 5000")
    @NotBlank
    private String azPlanChannel;

    @ApiModelProperty(value = "锁定状态（0 未锁定  1锁定）", example = "1")
    private Integer lockStatus;

    @ApiModelProperty(value = "用户AZ计划币种余额（矿池）相关的版本号", example = "0")
    private Integer orePoolVersion;

    @ApiModelProperty(value = "相关币种的资金划转相关的版本号", example = "0")
    private Integer moneyTransferVersion;
}
